<@master template="/common/master"  title="首页-p2p金融">
    <@include file="/common/head"/>
  	<@head title="登陆" dColor="dlHeader"/>
    <form id="subForm" role="form" action="/login" class="form-horizontal action-ajax-form" method="POST">
	    <div class="dlBox">
	    	<p id="error" class="wrong">${errorMsg}</p>
	        <ul class="dllist">
	        	<li><span class="yhIco icon"></span><input id="account" name="account" type="text" placeholder="请输入你的用户名"></li>
	            <li><span id="pwToggle" class="fr icon kjIco"></span><span class="dlIco icon"></span><input id="pw" name="password" type="password" placeholder="输入你的登陆密码"></li>
	        </ul>
	    </div>
	    <div class="btnBox">
	    	<p class="tar mb20"><a href="/ftl/forgetPassword" >忘记密码？</a></p>
	    	<input id="submitBtn" type="button" value="马上登陆"  class="tzBtn"/>
	        <a href="/register/index" class="zcBtn mt20">新用户注册</a>
	    </div>
    </form>
</@master>
<@js>
	$("#pwToggle").bind('click',function(){
		if($('#pw').prop('type')=='text'){
			$('#pw').prop('type','password');
			$(this).removeClass('bkjIco');
		}else {
			$('#pw').prop('type','text');
			$(this).addClass('bkjIco');
		
		}
	});
	$('#submitBtn').bind('click',function(){
		var account=$('#account').val();
		if(!account){
			$('#error').text('用户名不能为空');
			return false;
		}
		var pw=$('#pw').val();
		if(!pw){
			$('#error').text('密码不能为空');
			return false;
		}
		$('#subForm').submit();
	});
</@js>
<@jsRender/>